From ab8fdd95a1f4a39fb70fb8b7c74405f56ef63773 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Mon, 9 Nov 2009 19:40:48 +0000 Subject: [PATCH] blktap2: only open driver stack once Currently blktap2 opens a driver stack, closes it, and re-opens it. This causes problems with our remus driver: the primary may connect to the backup in between the first and second open. This is a temporary fix. Signed-off-by: Ryan O'Connor --- tools/blktap2/drivers/tapdisk-vbd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/blktap2/drivers/tapdisk-vbd.c b/tools/blktap2/drivers/tapdisk-vbd.c index 6aabfc22e4..e53cede879 100644 --- a/tools/blktap2/drivers/tapdisk-vbd.c +++ b/tools/blktap2/drivers/tapdisk-vbd.c @@ -1560,9 +1560,11 @@ tapdisk_vbd_issue_request(td_vbd_t *vbd, td_vbd_request_t *vreq) gettimeofday(&vreq->last_try, NULL); tapdisk_vbd_move_request(vreq, &vbd->pending_requests); +#if 0 err = tapdisk_vbd_check_queue(vbd); if (err) goto fail; +#endif err = tapdisk_image_check_ring_request(image, req); if (err) -- 2.30.2